package business.util;
public class Node< E> {
    private Node< E> next;
    private E data;
    
    public Node(E data) {
        this.data = data;
        next = null;
    }
    
    public Node(E data, Node< E> nextNode) {
        this.data = data;
        next = nextNode;
    }
    
   
    public void setData(E data) {
        this.data = data;
    }
    
   
    public void setNext(Node< E> next) {
        this.next = next;
    }
    
   
    public E getData() {
        return data;
    }
    
    
    public Node< E> getNext() {
        return next;
    }
}